* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFFFCC;
}

.box {
    width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    width: 400px;
    height: 400px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0.5em 0 1.25em #9999CC;
    position: relative;
}

.card h2 {
    height: 50px;
    line-height: 50px;
}

.card img {
    display: block;
    width: 200px;
    height: 200px;
    margin-left: 100px;
}


/* 点赞盒子 */

.card .feed {
    width: 300px;
    height: 150px;
    position: absolute;
    left: 50px;
    overflow: hidden;
}


/* 点赞样式 */

.heart p {
    display: block;
    position: absolute;
}

.heart {
    width: 100px;
    height: 100px;
    position: absolute;
    background: url("/home/images/web_heart_animation.png");
    background-position: left;
    background-repeat: no-repeat;
    cursor: pointer;
    left: -20px;
    background-size: 2900px;
}

.heart:hover {
    background-position: right;
}

.likeCount {
    height: 100px;
    position: absolute;
    left: 70px;
    text-align: center;
    line-height: 100px;
    font-size: 25px;
    color: #999999;
}

@keyframes heartBlast {
    0% {
        background-position: left;
    }
    100% {
        background-position: right;
    }
}

.heartAnimation {
    animation-name: heartBlast;
    animation-duration: .8s;
    animation-iteration-count: 1;
    animation-timing-function: steps(28);
    background-position: right;
}

.box1 {
    margin-top: 20px;
}

header {
    height: 80px;
    background: url("/home/images/topBg.png") 50% 0 no-repeat;
    position: relative;
}

header p {
    position: absolute;
    top: 10px;
    left: 470px;
    width: 700px;
    line-height: 25px;
    height: auto;
    text-align: left;
    text-indent: 0em;
    font-size: 13px;
    color: #ffffff;
    font-family: "微软雅黑";
}

header .logo {
    width: 45px;
    height: 45px;
    background: url("/home/images/register.png") no-repeat;
    position: absolute;
    top: 17px;
    right: 220px;
}

header .logo:hover {
    background: url("/home/images/register.png") 0 -45px no-repeat;
}

.box3 {
    width: 54px;
    height: 50px;
    background-color: #FFFFCC;
    position: fixed;
    left: 5px;
    top: 200px;
    text-align: center;
    line-height: 20px;
    border-radius: 5px;
    box-shadow: 0.5em 0 1.25em #9999CC;
    font-size: 22px;
    color: black;
    font-family: "微软雅黑";
    box-sizing: border-box;
    padding: 5px;
}

.box3 {
    animation: flip 1s linear 0s 1 normal both
}

@keyframes flip {
    from {
        transform: perspective(400px) rotate3d(0, 1, 0, -360deg);
        animation-timing-function: ease-out;
    }
    40% {
        transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);
        animation-timing-function: ease-out;
    }
    50% {
        transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);
        animation-timing-function: ease-in;
    }
    80% {
        transform: perspective(400px) scale3d(.95, .95, .95);
        animation-timing-function: ease-in;
    }
    to {
        transform: perspective(400px);
        animation-timing-function: ease-in;
    }
}